package com.ruoyi.system.wnjk.domain.po;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 就诊人信息对象 wnjk_patient
 * 
 * @author ruoyi
 * @date 2025-03-05
 */
public class WnjkPatient extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 就诊人ID */
    private Long id;

    /** 患者姓名 */
    @Excel(name = "患者姓名")
    private String name;

    /** 身份证号 */
    @Excel(name = "身份证号")
    private String idCard;

    /** 性别 */
    @Excel(name = "性别")
    private String gender;

    /** 出生日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出生日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date birthDate;

    /** 体重 (kg) */
    @Excel(name = "体重 (kg)")
    private BigDecimal weight;

    /** 过敏史 (可选) */
    @Excel(name = "过敏史 (可选)")
    private String allergyHistory;

    /** 既往病史 (可选) */
    @Excel(name = "既往病史 (可选)")
    private String medicalHistory;

    /** 肝功能 */
    @Excel(name = "肝功能")
    private String liverFunction;

    /** 肾功能 */
    @Excel(name = "肾功能")
    private String kidneyFunction;

    /** 备孕/怀孕/哺乳状态 */
    @Excel(name = "备孕/怀孕/哺乳状态")
    private String pregnancyStatus;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setIdCard(String idCard) 
    {
        this.idCard = idCard;
    }

    public String getIdCard() 
    {
        return idCard;
    }
    public void setGender(String gender) 
    {
        this.gender = gender;
    }

    public String getGender() 
    {
        return gender;
    }
    public void setBirthDate(Date birthDate) 
    {
        this.birthDate = birthDate;
    }

    public Date getBirthDate() 
    {
        return birthDate;
    }
    public void setWeight(BigDecimal weight) 
    {
        this.weight = weight;
    }

    public BigDecimal getWeight() 
    {
        return weight;
    }
    public void setAllergyHistory(String allergyHistory) 
    {
        this.allergyHistory = allergyHistory;
    }

    public String getAllergyHistory() 
    {
        return allergyHistory;
    }
    public void setMedicalHistory(String medicalHistory) 
    {
        this.medicalHistory = medicalHistory;
    }

    public String getMedicalHistory() 
    {
        return medicalHistory;
    }
    public void setLiverFunction(String liverFunction) 
    {
        this.liverFunction = liverFunction;
    }

    public String getLiverFunction() 
    {
        return liverFunction;
    }
    public void setKidneyFunction(String kidneyFunction) 
    {
        this.kidneyFunction = kidneyFunction;
    }

    public String getKidneyFunction() 
    {
        return kidneyFunction;
    }
    public void setPregnancyStatus(String pregnancyStatus) 
    {
        this.pregnancyStatus = pregnancyStatus;
    }

    public String getPregnancyStatus() 
    {
        return pregnancyStatus;
    }
    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("idCard", getIdCard())
            .append("gender", getGender())
            .append("birthDate", getBirthDate())
            .append("weight", getWeight())
            .append("allergyHistory", getAllergyHistory())
            .append("medicalHistory", getMedicalHistory())
            .append("liverFunction", getLiverFunction())
            .append("kidneyFunction", getKidneyFunction())
            .append("pregnancyStatus", getPregnancyStatus())
            .append("createdAt", getCreatedAt())
            .toString();
    }
}
